package com.bingxue.edu.common.config;

import com.bingxue.edu.framework.config.DynamicConfig;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 富友支付配置
 * @author panbo
 * @since 2024/9/11
 */
@Data
@DynamicConfig
@Configuration(proxyBeanMethods = false)
@ConfigurationProperties(prefix = "pay.fuiou")
public class FuiouPayProperties {

    /**
     * 商户在富友入网时生成的商户号
     */
    private String mchntCd = "0006530F7810693";
//    private String mchntCd = "0001000F0040992";

    /**
     * 商户在微信侧申请的小程序或公众号APPID
     */
    private String wxAppId = "wxdea451e04f004830";

    /**
     * 订单支付成功，富友会根据此地址通知对接商户系统(POST)
     */
    private String backNotifyUrl = "https://edu.bingxuewenhua.com/api/shop/pay/callback/fuiou";

    /**
     * 小程序链接地址
     */
    private String wxUrlLink;

    /**
     * 支付订单超时时间，单位分钟
     */
    private Integer orderTimeout = 120;

    /**
     * 富友公钥
     */
    private String fuiouPublicKey = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCUDBs0ks1Dhau++ifCS6PCvLA3lELcy3Nz1rMMpQmngV5QtlaKlDYvLTSKvCrHqSYoLbQnIEUPe6Tv8mFZTWyBunxupLoRgdOv+J21yM4q81Zj6bwmUWLa6TSZ5glvLDRmKRLteDzhC6MCHUWkdli/DaLGoxJduIpf84CACoaRHQIDAQAB";
//    private String fuiouPublicKey = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCKPD4f/3xMjPuHcQSGxPIYZNgF2i0sJhzmKpN3dmzhbKH/1nG+aXUJDhswyitzrI+U0ic/GL/IWB1wQ3noWuLFr8jDSGafenTFiY9c0H9ZAEfqW/oywx95G5JWu5y/ffp4yCmlt8k5kHO/4kE1qnJcGaQlb6/+7t3MPSV5ybmBZwIDAQAB";
    /**
     * 商户公证书
     */
    private String mchntPublicKey = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvE+xycU0y+Zr3j7FCNBadF7Jl1bJBoZNDnNgJeasAM10QAhtoN8j1nizuuvVbGYO+4KO6ExXctM8MjMRP/1RFX5ZWFNw9RN3Z7eunrj8Xnm9BppVJOAtZ3atswZOMTvrpdaA0rgmRKuB/8aXEsh18ofNhRaGeF1LBuzoZazNkdrlCkHKvUe3qzwH0hhJuSItds3R1zTDNVvNCGkabYJ5Jl33iz/jOd9Ea2LCFutjp2cSntirdiioGKZxAtVP8JaM7zBPCgS7yhD3HyMc6kp3FzhYGh2HKfP0jLAoGjkV2obckLdEtF00QdyZ4PuEuDFlhweDXieVWpLAYQocISuQKwIDAQAB";
//    private String mchntPublicKey = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCTK/DZ0Ve73u2ORRAYrpv07FNHyuTb87xabGMTwEIQV2PhDdAYtiRIO/dAtZ45PUN1N+rtiQQxwIgyKJpYIesFpCbBZ+3YIVf3wlkl9VVSfnUSDWcteN9n0WifBqrKbzJ3gaXi4wXveCMJViqTfgDkfgTV/EC/7h5nwj5VUF6LPQIDAQAB";
    /**
     * 商户私钥证书
     */
    private String mchntPrivateKey = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQC8T7HJxTTL5mvePsUI0Fp0XsmXVskGhk0Oc2Al5qwAzXRACG2g3yPWeLO669VsZg77go7oTFdy0zwyMxE//VEVfllYU3D1E3dnt66euPxeeb0GmlUk4C1ndq2zBk4xO+ul1oDSuCZEq4H/xpcSyHXyh82FFoZ4XUsG7OhlrM2R2uUKQcq9R7erPAfSGEm5Ii12zdHXNMM1W80IaRptgnkmXfeLP+M530RrYsIW62OnZxKe2Kt2KKgYpnEC1U/wlozvME8KBLvKEPcfIxzqSncXOFgaHYcp8/SMsCgaORXahtyQt0S0XTRB3Jng+4S4MWWHB4NeJ5VaksBhChwhK5ArAgMBAAECggEANXYytWPlf1Xlne0YJ05vv8YBWZPr8oxCaC3dSCVbA8dQj7VU2m0/UW5nKFQ3/VRkQIdqZ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